﻿using System;
using System.Collections.Generic;
using System.Text;

namespace PeiYue.Model.Dto.Tms
{
    public class RouterFeeDto : BaseResponseDto
    {
        public long id { get; set; }
        /// <summary>
        /// 机构id
        /// </summary>
        public long unit_id { get; set; }
        /// <summary>
        /// 线路id
        /// </summary>
        public long router_id { get; set; }
        public string router_name { get; set; }
        /// <summary>
        /// 物流费
        /// </summary>
        public int fee { get; set; }
        public double feec { get { return (fee > 0 ? ((double)fee / 100) : 0); } set { if (value > 0) fee = (int)(value * 100); } }
        /// <summary>
        /// 哪天的物流费
        /// </summary>
        public DateTime fee_date { get; set; }
        public string fee_datec { get { if (fee_date > DateTime.Now.AddYears(-10)) return fee_date.ToString("yyyy-MM-dd"); else return ""; } }
        /// <summary>
        /// 付费凭证图片
        /// </summary>
        public string img { get; set; }
        public string img_path { get; set; }
        public long img_res_id { get; set; }

        public long create_user { get; set; }
        public long update_user { get; set; }
    }


}
